<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<%--
    This file is an entry point for JavaServer Faces application.
--%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Opciones</title>
    </head>
    <body >
        <!--f:view-->
        <h:form>
            <h1><h:outputText value="Menú" /></h1>
            <br/>
            <h:panelGroup rendered="#{permiso.itemCount > 0}">
                <h:dataTable styleClass="menu" value='#{permiso.permisos2}' var='item'>
                    <h:column>
                        <h:commandLink value="#{item.descripcionMenu}" action="#{permiso.detailSetup2}">
                            <f:param name="jsfcrud.currentPermiso" value="#{permiso.asString[item]}"/>
                        </h:commandLink>
                    </h:column>
                </h:dataTable>
            </h:panelGroup>
            <%--h:panelGroup >
                        <h:commandLink value="Auditoria Acceso" action="rptAuditoriaAcceso">
                        </h:commandLink>

                        <h:commandLink value="SR General" action="rptSolicitudReservaGeneral">
                        </h:commandLink>
                        <h:commandLink value="SR por TipoRecurso" action="rptSolicitudReservaPorRecurso">
                        </h:commandLink>
                        <h:commandLink value="Estadistica SR" action="rptEstadisticaSolicitudReserva">
                        </h:commandLink>
                        <h:commandLink value="Auditoria SR" action="rptAuditoriaSolicitudReserva">
                        </h:commandLink>
                        <h:commandLink value="Movimiento de Recursos" action="rptMovimientoRecurso">
                        </h:commandLink>

            </h:panelGroup--%>

        </h:form>
        <!--/f:view-->
    </body>
</html>
